<template>
	<view>
		<view class="flex mtb">
			<view class="fz18 bold">{{data.name}}</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		name:"uni-title",
		props:{
			url : String ,
			data:{
				type : Object ,
				default(){
					return {} ;
				}
			}
		},
		data() {
			return {
				pageNumber : 1 
			};
		},
		methods:{
			async refresh(){
				this.pageNumber ++ ;
				let res = await await uni.$b.call( this.url , {
					pageNumber : this.pageNumber ,
					pageSize : this.data.max ,
					recommendId : this.data._id 
				});
				this.data.books = res.page.list ;
				if (res.page.lastPage) {
					this.pageNumber = 0 ;
				}
			}
		}
	}
</script>
<style>
	.songFont{
		font-family: "宋体";
	}
</style>